
export interface ResponseData {
  code: number,
  message: string,
  ok: boolean
}
// 提交订单接口返回数据类型
export interface SubmitOrder extends ResponseData {
  data: number
}
// 订单详情数据的ts类型 
export interface OrderInfo {
  "id": number,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {
    "orderStatusString": string
  },
  "userId": number,
  "outTradeNo": string,
  "hoscode": string,
  "hosname": string,
  "depcode": string,
  "depname": string,
  "scheduleId": string,
  "title": string,
  "reserveDate": string,
  "reserveTime": number,
  "patientId": number,
  "patientName": string,
  "patientPhone": string,
  "hosRecordId": string,
  "number": number,
  "fetchTime": string,
  "fetchAddress": string,
  "amount": number,
  "quitTime": string,
  "orderStatus": number
}
//   定义订单接口返回的数据类型
export interface OrderResponseDate extends ResponseData {
  data: OrderInfo
}

// 定义支付订单二维码数据的ts类型
export interface PayInfo {
  "codeUrl": string,
  "orderId": number,
  "totalFee": number,
  "resultCode": string
}
// 定义订单接口返回的数据类型
export interface PayResponseDate extends ResponseData {
  data: PayInfo
}

// 定义查询支付订单结果的ts类型
export interface PayReslt extends ResponseData {
  data: boolean
}
// 代表一个实名认证用户信息的数据类型
export interface UserInfo {
  "id": number,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {

  },
  "openid": null,
  "nickName": null,
  "phone": string,
  "name": string,
  "certificatesTypr": string,
  "certificatesNo": string,
  "certificatesUrl": null,
  "authStatus": number,
  "status": number
}
// 获取用户信息接口返回的数据ts类型
export interface UserInfoResponseData extends ResponseData {
  data: UserInfo
}
// 获取证件类型返回数据ts类型
export interface CertationInfo {
  "id": number,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {},
  "parentId": number,
  "name": string,
  "value": string,
  "dictCode": string,
  "hasChildren": boolean
}
// 获取证件类型数据
export type CertationArr = CertationInfo[];

export interface CertationTypeResponseData extends ResponseData{
  data:CertationArr
}
// 用户认证携带参数的数据类型
export interface UserParam{
  "certificatesNo": string,
  "certificatesType": string,
  "certificatesUrl": string,
  "name": string
}

// 代表一个订单的ts数据类型
export interface Order{
  "id": number,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {
    "orderStatusString": string
  },
  "userId": number,
  "outTradeNo": string,
  "hoscode": string,
  "hosname": string,
  "depcode": string,
  "depname": string,
  "scheduleId": string,
  "title": string,
  "reserveDate": string,
  "reserveTime": number,
  "patientId": number,
  "patientName": string,
  "patientPhone": string,
  "hosRecordId": string,
  "number": number,
  "fetchTime": string,
  "fetchAddress": string,
  "amount": number,
  "quitTime": string,
  "orderStatus": number
}
export type Records = Order[];
export interface UserOrderInfoResponseData extends ResponseData{
  data:{
    "records":Records
    "total": number,
    "size": number,
    "current": number,
    "orders": [],
    "hitCount": boolean,
    "searchCount": boolean,
    "pages": number
  }
}

// 就诊人信息
export interface User {
  "id": number
  "createTime": string,
  "updateTime": string,
  "isDeleted": string,
  "param": {
      "certificatesTypeString": string,
      "contactsCertificatesTypeString": string,
      "cityString": null,
      "fullAddress": string,
      "districtString": null,
      "provinceString": null
  },
  "userId": number,
  "name": string,
  "certificatesType": string,
  "certificatesNo": string,
  "sex": number,
  "brithdate": string,
  "phone": string,
  "isMarry": number,
  "provinceCode": null,
  "cityCode": null,
  "districtCode": null,
  "address": string,
  "contactsName": string,
  "contactsCertificatesType": string,
  "contactsCertificatesNo": string,
  "contactsPhone": string,
  "isInsure": number,
  "cardNo": null,
  "status": string
}
export type AllUser = User[];
// 全部就诊人信息类型
export interface AllUserResponseData extends ResponseData{
    data:AllUser
}

// 订单状态管理
export interface OrderStatue {
  "comment":string,
  "status":number
}
export type AllOrderStatue = OrderStatue[];
// 全部订单状态
export interface OrderStatueResponseData extends ResponseData{
  data:AllOrderStatue;
}
// 新增与已修改的就诊人参数的数据类型
export interface AddOrUpdateUser{
  id?: string,
  name: string,
  certificatesType: string,
  certificatesNo:string,
  sex: number,
  birthdate:string,
  phone:string,
  isMarry : number,
  isInsure : number,
  addressselected :string[],
  address : string,
  contactsName : string,
  contactsCertificatesType: string,
  contactsCertificatesNo: string,
  contactsPhone: string
}  